<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>文章管理</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" type="image/png" href="/Public/admin/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="/Public/admin/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="stylesheet" href="/Public/admin/css/amazeui.min.css"/>
    <link rel="stylesheet" href="/Public/admin/css/amazeui.datatables.min.css"/>
    <link rel="stylesheet" href="/Public/admin/css/app.css">
    <script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>

</head>

<body data-type="widgets">
<script src="/Public/admin/js/theme.js"></script>
<div class="am-g tpl-g">
    <!-- 头部 -->

    <include file="Index/top_menu"/>

    <!-- 风格切换 -->
    <div class="tpl-skiner">
        <div class="tpl-skiner-toggle am-icon-cog"></div>
        <div class="tpl-skiner-content">
            <div class="tpl-skiner-content-title">选择主题</div>
            <div class="tpl-skiner-content-bar"><span
                    class="skiner-color skiner-white" data-color="theme-white"></span> <span
                    class="skiner-color skiner-black" data-color="theme-black"></span></div>
        </div>
    </div>
    <!-- 侧边导航栏 -->
    <include file="Index/left_menu"/>
    <!-- 内容区域 -->
    <div class="tpl-content-wrapper">
        <div class="row-content am-cf">
            <div class="row">

                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                    <div class="widget am-cf">
                        <div class="widget-head am-cf">
                            <div class="widget-title am-fl">新建相册</div>
                            <div class="widget-function am-fr">
                                <a href="javascript:;" class="am-icon-cog"></a>
                            </div>
                        </div>
                        <div class="widget-body am-fr">
                            <div class="am-form-group">
                                <label for="user-weibo" class="am-u-sm-12 am-form-label  am-text-left">封面图 <span
                                        class="tpl-form-line-small-title">Images</span></label>
                                <include file="upload"/>
                            </div>
                            <form class="am-form tpl-form-border-form" method="post" action="/admin.php?c=article&a=update">
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-12 am-form-label am-text-left">标题 <span
                                            class="tpl-form-line-small-title">Title</span></label>
                                    <div class="am-u-sm-12">
                                        <input type="text" name="a_title" class="tpl-form-input am-margin-top-xs" id="user-name" value="{$article.a_title}"
                                               placeholder="请输入标题文字">
                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <label for="user-email" class="am-u-sm-12 am-form-label am-text-left">发布时间 <span
                                            class="tpl-form-line-small-title">Time</span></label>
                                    <div class="am-u-sm-12">
                                        <input type="text" value="{$article.a_addtime}" name="a_addtime" class="am-form-field tpl-form-no-bg am-margin-top-xs"
                                               placeholder="发布时间" data-am-datepicker=""  readonly>
                                    </div>
                                </div>
                                <div class="am-form-group">
                                    <label class="am-u-sm-12 am-form-label  am-text-left">作者 <span class="tpl-form-line-small-title">SEO</span></label>
                                    <div class="am-u-sm-12">
                                        <input type="text"  value="{$article.a_adduser}" name="a_adduser" class="am-margin-top-xs" placeholder="请输入作者">
                                    </div>
                                </div>




                                <!--<div class="am-form-group">-->
                                <!--<label for="user-weibo" class="am-u-sm-12 am-form-label  am-text-left">封面图 <span-->
                                <!--class="tpl-form-line-small-title">Images</span></label>-->
                                <!--<div class="am-u-sm-12 am-margin-top-xs">-->
                                <!--<div class="am-form-group am-form-file">-->
                                <!--<div class="tpl-form-file-img">-->
                                <!--<img src="{$article.a_photo}" alt="">-->
                                <!--</div>-->
                                <!--<button type="button" class="am-btn am-btn-danger am-btn-sm ">-->
                                <!--<i class="am-icon-cloud-upload"></i> 添加封面图片-->
                                <!--</button>-->
                                <!--<input id="doc-form-file" name="a_photo" type="file" multiple>-->
                                <!--</div>-->

                                <!--</div>-->
                                <!--</div>-->



                                <div class="am-form-group">
                                    <label for="user-weibo" class="am-u-sm-12 am-form-label  am-text-left">添加分类 <span
                                            class="tpl-form-line-small-title">Type</span></label>
                                    <div class="am-u-sm-12">
                                        <input type="text" value="{$article.a_type}" name="a_type" id="user-weibo" class="am-margin-top-xs"
                                               placeholder="请添加分类用点号隔开">
                                        <div>

                                        </div>
                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <label for="user-intro" class="am-u-sm-12 am-form-label  am-text-left">隐藏文章</label>
                                    <div class="am-u-sm-12">
                                        <div class="tpl-switch">
                                            <input type="checkbox" name="a_state" value="1"
                                                   class="ios-switch bigswitch tpl-switch-btn am-margin-top-xs"
                                            <if condition="$article.a_state != 0">checked=""</if> >
                                            <div class="tpl-switch-btn-view">
                                                <div>
                                                </div>
                                            </div>
                                        </div>

                                    </div>
                                </div>
                                <div class="am-form-group">
                                    <label for="user-intro" class="am-u-sm-12 am-form-label  am-text-left">文章摘要&nbsp;&nbsp;&nbsp;(如不填写，则按照默认设置显示)</label>
                                    <div class="am-u-sm-12 am-margin-top-xs">
                                        <textarea class="" name="a_begin" rows="5" id="user-intro" placeholder="请输入文章摘要">{$article.a_begin}</textarea>
                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <label for="user-intro" class="am-u-sm-12 am-form-label  am-text-left">
                                        文章内容&nbsp;&nbsp;&nbsp;(由于MarkDown插件受限于页面布局，图片和代码插入窗口的输入
                                        框位置会往下偏差，可点击<a href="/admin.php?c=article&a=themes&a_id={$article.a_id}">独立写作</a>)</label>
                                    <div class="am-u-sm-12 am-margin-top-xs">


                                        <input type="hidden" name="a_id" value="{$article.a_id}">
                                        <input type="hidden" name="flag" value="{$flag}">

                                        <!--<textarea class="" rows="10" id="user-intro" placeholder="请输入文章内容"></textarea>-->
                                    </div>
                                </div>


                                <include file="themes"/>


                                <div class="am-form-group" align="center">
                                    <div class="am-u-sm-12 am-u-sm-push-12">
                                        <button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success ">
                                            提交
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>


</div>
<script src="http://cdn.bootcss.com/amazeui/2.7.2/js/amazeui.min.js"></script>
<script src="/Public/admin/js/app.js"></script>

</body>

</html>